<%@ page language="java" import="java.util.*" pageEncoding="utf-8" isELIgnored="false" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme() + "://"
            + request.getServerName() + ":" + request.getServerPort()
            + path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
    <title>取现</title>
    <script src="https://apps.bdimg.com/libs/jquery/2.1.4/jquery.min.js"></script>
    <base href="<%=basePath%>">

    <title>My JSP 'index.jsp' starting page</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="cache-control" content="no-cache">
    <meta http-equiv="expires" content="0">
    <meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
    <meta http-equiv="description" content="This is my page">
    <!--
<link rel="stylesheet" type="text/css" href="styles.css">
-->


</head>

<body>
<script>
    $(function () {
        $("#money").blur(function () {
            let val = $("#money").val();
            $("#text").val(val * 0.05);
        })
    });

</script>
<form action="/creditCard" method="get">
    <div class="form-group" style="text-align: center">
        <h1>取现</h1>
        信用卡号：
        <input type="text" name="cardnumber"/>
        <br/>
        取现金额：
        <input type="text" name="money" id="money"/>
        <br/>
        支付密码：
        <input type="password" name="password"/>
        <br/>
        　手续费：
        <input type="text" name="text" value="${cx}" id="text">
        <br/>
        <input type="hidden" name="action" value="credit4">
        <%--        <input type="submit" value="确定"/>--%>
        <%--        <br/>--%>
        <%--        <br/>--%>
        <%--        <a href="/page/credit_success.jsp">返回</a>--%>
        <div class="form-group" style="text-align: center">
            <br>
            <input class="btn btn-primary" type="submit" value="提交"/>
            <input class="btn btn-default" type="reset" value="重置"/>
            <a href="/page/credit_success.jsp">返回</a>
        </div>
    </div>
    <div class="form-group" style="text-align: center">
        <span style="color: red;position: relative;left: 150px" >${qx}</span>
    </div>

</form>
</body>
</html>

